package com.gome.ocean.common.constants;

/**
 * Created by liuqingxia on 2016/1/21.
 */
public class Constants {

    /*** 默认页码 ***/
    public static final int    DEFAULT_PAGE_NUM              = 1;
    /*** 默认每页大小 ***/
    public static final int    DEFAULT_PAGE_SIZE             = 10;
    public static final String REQUEST_READER_PARAM_PRE      = "reader";
    public static final String REQUEST_WRITER_PARAM_PRE      = "writer";
    /*** 数字的正则表达式 ****/
    public static final String REG_NUMBER                    = "[0-9]+";
    /*** yyyy-MM-dd HH:mm:ss ***/
    public static final String REG_DATE_FORMAT               = "\\d{4}-\\d{1,2}-\\d{1,2} \\d{1,2}:\\d{1,2}:\\d{1,2}";
    /****** 中英文逗号 *******/
    public static final String REG_CN_OR_EN_COMMA            = "\\,|\\，";
    /***** 邮箱格式 *****/
    public static final String REG_EMAIL                     = "[a-zA-Z0-9_\\-\\.]+@(gomeplus\\.(com))";
    /****** session保存当前登陆用户的key *******/
    public static final String SESSION_LOGIN_USER            = "currentLoginUser";
    /****** session保存当前登陆用户名 *****/
    public static final String REQUEST_USER_NAME             = "loginUserName";
    /**** 保存在request域中的错误信息 ****/
    public static final String REQUEST_ERROR_MESSAGE         = "errorMsg";
    /***** 是否访问管理后台 *****/
    public static final String REQUEST_IS_ADMIN              = "isAdmin";
    /****** 登陆路径 ******/
    public static final String IS_LOGIN_URL                  = "isLoginUrl";
    /***** 退出路径 *****/
    public static final String IS_LOGOUT_URL                 = "isLogoutUrl";
    /**** 电话号码正则表达式 ****/
    public static final String REG_PHONE_NUMBER              = "1([\\d]{10})";
    /***** 管理员字符串 *****/
    public static final String ADMIN                         = "admin";
    /**
     * 测试环境 diamond 校验值 ，当value=1
     * 时为测试环境，不需要进行手机号验证，即可登录。当value=2时，为线上环境，需进行手机号验证才能登陆。
     */
    public static final String SMS_LONGIN_VALIDATE_FLAG_UAT  = "1";
    public static final String SMS_LONGIN_VALIDATE_FLAG_LIVE = "2";
    /**
     * es测试环境 value =1.生产环境 value=2;
     */
    public static final String ES_ENVIRONMENT_UAT            = "1";
    public static final String ES_ENVIRONMENT_LIVE           = "2";

    public static final String MAIL_SUCCESS = "200";// 成功

    public static final String MAIL_FAIL = "203";// 发送失败

    public static final String SMS_URL = "http://10.58.24.126:801/QgService.asmx/SendSaleSMS";

    // 短信模板ID
    public static final String temp_id      = "9001";
    // 短信business_name
    public static final String businessName = "architecture_data_manage_login";

    // 版本历史首页
    public static final Integer SCOPE_MAIN_PAGE   = 1;
    // 版本历史websql
    public static final Integer SCOPE_WEBSQL_PAGE = 2;
    // 生产环境LIVE环境与测试环境分别的DSM获取数据地址
    public static final String  DSM_LIVE_IP       = "10.58.62.163:8180";
    public static final String  DSM_TEST_IP       = "10.112.178.176:9180";

}
